# -*- coding: utf-8 -*-
# @Author：fanmingxiang@touty.io
# @Date  ：2022/2/28 11:47
from base.base import Base
import page


class PageDraw(Base):
    def page_click_search_box(self):
        self.base_click(page.search_box)

    def page_input_search_input(self, search_input):
        self.base_input(page.search_input, search_input)

    def page_click_official_account(self):
        self.base_click(page.official_account)

    def page_click_first_menu(self):
        self.base_click(page.first_menu)

    def page_click_second_menu(self):
        self.base_click(page.second_menu)

    def page_webview(self):
        self.base_webview()

    def page_get_draw_number(self):
        return self.base_get_text(page.draw_number)

    def page_click_draw_button(self):
        self.base_click(page.draw_button)

    def page_get_draw_win_text(self):
        return self.base_get_text(page.draw_win_text)

    def page_back(self):
        self.base_back()

    def page_draw(self, search_input):
        self.page_click_search_box()
        self.page_input_search_input(search_input)
        self.page_click_official_account()
        self.page_click_first_menu()
        self.page_click_second_menu()
        self.page_webview()
        self.page_click_draw_button()